BASS_CDPlay

Plays an audio CD track.

BOOL WINAPI BASS_CDPlay(
    DWORD track,
    BOOL loop
);

Parameters
trackThe track number to play... 1 = the first track.
loopLoop the track?

Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_CDINIT BASS_CDInit has not been successfully called.
BASS_ERROR_CDTRACKThe track number is invalid.
BASS_ERROR_NOCDThere's no CD in the drive.
BASS_ERROR_NOTAUDIOThe track is not an audio track.

Remarks
Use CDCHANNEL with BASS_ChannelStop to stop the CD.

See also
BASS_CDInDrive, BASS_ChannelIsActive, BASS_ChannelSetAttributes, BASS_ChannelPause, BASS_ChannelStop